package com.example.tests;

import static org.hamcrest.MatcherAssert.*;
import static org.hamcrest.Matchers.*;
import java.util.logging.Logger;
import org.testng.annotations.Test;
import com.example.fw.Groups;

public class UiConformsWithDbTests extends TestBase {
	
	private  Logger log = Logger.getLogger("GroupCreationTests");
	
	@Test
	public void testUiAndDbConformsWithModel() {
		Groups modelList = app.getGroupHelper().getGroups();
		Groups dbList = app.getHibernateHelper().getGroups();
		Groups uiList = app.getGroupHelper().getUiGroups();
		assertThat(dbList, equalTo(modelList));
		assertThat(uiList, equalTo(modelList));
	}
}